﻿using UnityEngine;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
#endif

[System.Serializable]
public class ZombieInfo : CharacterInfo
{
	[Header("Zombie")]
	public ZombieType type;
	public enum ZombieType
	{
		Simple,	// Go to target
		Medium,
		Advanced,
	}
	
	public override InteractiveInfo Clone()
	{
		ZombieInfo info = base.CloneCharacter<ZombieInfo>();
		
		info.type = type;
		return info;
	}
	
	#region Editor
#if UNITY_EDITOR
	// Return true id it is to be removed
	public override DrawResult DrawEditor()
	{
		DrawResult result = base.DrawEditor();
		if (result != DrawResult.None)
		{
			return result;
		}

		type = (ZombieType)EditorGUILayout.EnumPopup("Zombie Type", type);

		return DrawResult.None;
	}
#endif
	#endregion
}